package com.txt.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(value ="book")
@Data
public class Book {
    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = "ID")
    private Integer id;

    @ExcelProperty(value = "书名")
    private String name;

    @ExcelProperty(value = "作者")
    private String author;

    @ExcelProperty(value = "权限")
    private String publish;

    @ExcelProperty(value = "排序")
    private String sort;

    @ExcelProperty(value = "数量")
    private Integer stock;

}